import Vue from 'vue'
import App from './App'
import API from '@/common/api'
import baseEmpty from './components/base-empty.vue'
Vue.prototype.$api = API
Vue.config.productionTip = false
import store from './store'
Vue.prototype.$store = store
App.mpType = 'app'
Vue.component('base-empty',baseEmpty)
Vue.filter('replaceImg', function (html) {
  if (!html) return
  return html.replace(/\<img/gi, '<img class="rich-img" ');
})

const app = new Vue({
  ...App
})
app.$mount()
